package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName("user")
public class User {
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "name")
    private String name;
    private String paw;
    @TableLogic
    private Integer deleted;
    @TableField(fill=FieldFill.INSERT)
    private Date createtime;
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Date updatetime;

    public User(Integer id, String name, String paw, Integer deleted, Date createtime, Date updatetime) {
        this.id = id;
        this.name = name;
        this.paw = paw;
        this.deleted = deleted;
        this.createtime = createtime;
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", paw='" + paw + '\'' +
                ", deleted=" + deleted +
                '}';
    }

    public User(Integer id, String name, String paw, Integer deleted) {
        this.id = id;
        this.name = name;
        this.paw = paw;
        this.deleted = deleted;
    }

    public User() {
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPaw(String paw) {
        this.paw = paw;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPaw() {
        return paw;
    }

    public Integer getDeleted() {
        return deleted;
    }
}
